﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Text;

namespace KingOfCSharp.iHunter.UI
{
    public partial class NotifyAgent : System.Windows.Forms.UserControl
    {
        public NotifyAgent()
        {
            InitializeComponent();
        }

        public NotifyAgent(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        public void ShowInfo(string info)
        {
            this.notifyIcon.ShowBalloonTip(3000, this.notifyIcon.BalloonTipTitle, info, System.Windows.Forms.ToolTipIcon.Info);
        }
        public void ShowError(string error)
        {
            this.notifyIcon.ShowBalloonTip(3000, this.notifyIcon.BalloonTipTitle, error, System.Windows.Forms.ToolTipIcon.Error);
        }
    }
}
